﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
   public class AdjustPositionBLL
    {
       AdjustPositionDAL adal = new AdjustPositionDAL();

       //获取库位中条码列表
       public DataSet GetAdjustPosition(string CWPID)
       {
           return adal.GetAdjustPosition(CWPID);
       }

         //根据库位编码获取库位ID、名称
       public bool GetPIDbyPlaceCode(string PlaceCode, out string CWPID, out string PlaceName)
       {
           return adal.GetPIDbyPlaceCode(PlaceCode, out  CWPID, out  PlaceName);
       }

        //根据包装条码查找其所在的库位编码、库位名称、层
       public bool GetJPIDbyPkgsBarCode(string PkgsBarCode, out string JPlaceCode, out string JPID, out int Floor)
       {
           return adal.GetJPIDbyPkgsBarCode(PkgsBarCode, out  JPlaceCode, out  JPID, out  Floor);
       }

       //更新包装条码的库位、层
       public string UPdateSTOCKFloor(string PkgsBarCode, string CWPID, int Floor)
       {
           return adal.UPdateSTOCKFloor(PkgsBarCode, CWPID, Floor);
       }
    }
}
